package com.xuecheng.search.service;

import com.xuecheng.commons.model.dto.CoursePubIndexDto;
import com.xuecheng.commons.model.dto.PageRequest;
import com.xuecheng.commons.model.vo.ResponseResult;

import java.io.IOException;


public interface SearchService {
    ResponseResult search(PageRequest request, CoursePubIndexDto dto) throws Exception;

    void createIndex(Long coursePubId) throws IOException;

    ResponseResult findById(Long id) throws IOException;

    void deleteIndex(Long coursePubId) throws Exception;
}
